package cn.com.huzo.repository.hr;

import cn.com.huzo.model.entities.hr.LeaveApplicationEntity;
import huzofw.repository.GenericRepository;

/**
 * 请假单数据访问对象接口。
 *
 * @author 吴旭
 */
public interface LeaveApplicationRepository extends GenericRepository<LeaveApplicationEntity, String> {

    /**
     * 设置流程ID
     *
     * @param leaveApplicationId 请假单ID
     * @param processInstanceId 流程ID
     * @return
     */
    Integer setProcessInstanceId(String leaveApplicationId, String processInstanceId);

    /**
     * 设置流程状态
     *
     * @param leaveApplicationId 请假单ID
     * @param status 状态符
     * @return
     */
    Integer setStatus(String leaveApplicationId, Short status);

}
